import os
# 通过cmd命令进行病毒扫描
input = input("1.快速扫描。2.全盘扫描。(填序号即可，快速扫描较快，全盘扫描较慢。显示Scan starting...是正在扫描！）")
if input == "1":
    command = r'"C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 1'
elif input == "2":
    command = r'"C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 2'
else:
    print("输入错误")
# 返回cmd代码
return_code = os.system(command)
print("返回代码:", return_code)